//
//  GCMConmonViewController.m
//  GeeCityManager
//
//  Created by 聚城科技 on 16/4/18.
//  Copyright © 2016年 聚城科技. All rights reserved.
//

#import "GCMConmonViewController.h"

@interface GCMConmonViewController ()

@end

@implementation GCMConmonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [GCMMainHttpRequst pushTestSuccess:^(id MainPage, NSError *err) {
//        NSLog(@"8888888%@",MainPage);
//    }];
    self.navigationController.navigationBarHidden = NO;
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    //    设置背景色
    webView.backgroundColor = [UIColor clearColor];
    //    使网页透明
    webView.opaque = NO;
    //    加载网页
    NSString *str = [NSString stringWithFormat:@"%@pda/AppMywork.aspx?id=%@&upass=%@&type=%@",[GCMUserInfo instance].oaServer,[GCMUserInfo instance].uid,[[NSUserDefaults standardUserDefaults]valueForKey:@"passWord"],self.type];
//    NSLog(@"111111%@",str);
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
//    @"http://0.89892528.cn:8888/pda/AppMywork.aspx?id=42&upass=f82d132f9bb018ca&type=1"
    [self.view addSubview:webView];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
